package com.cn.entity;

import javax.persistence.Cacheable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;

/**
 * 过滤手机号码
 * 
 * @author wzx
 */
@Entity
@Table(name = "telaccsegment")
@GenericGenerator(name = "system-uuid", strategy = "uuid")
@Cacheable
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class Telaccsegment {
	/**
	 * isp_id
	 */
	@Column(name = "isp_id")
	private int isp_id;

	/**
	 * 电话号码前6位
	 */
	@Id
	@Column(name = "acc_segment")
	private String acc_segment;

	/**
	 * 省名
	 */
	@Column(name = "province_name")
	private String province_name;

	/**
	 * 城市代码
	 */
	@Column(name = "city_code")
	private String city_code;

	/**
	 * acc_type
	 */
	@Column(name = "acc_type")
	private String acc_type;

	/**
	 * 城市代码
	 */
	@Column(name = "province_id")
	private int province_id;

	/**
	 * isp_id
	 */
	public int getIsp_id() {
		return isp_id;
	}

	/**
	 * isp_id
	 */
	public void setIsp_id(int isp_id) {
		this.isp_id = isp_id;
	}

	/**
	 * 电话号码前6位
	 */
	public String getAcc_segment() {
		return acc_segment;
	}

	/**
	 * 电话号码前6位
	 */
	public void setAcc_segment(String acc_segment) {
		this.acc_segment = acc_segment;
	}

	/**
	 * 省名
	 */
	public String getProvince_name() {
		return province_name;
	}

	/**
	 * 省名
	 */
	public void setProvince_name(String province_name) {
		this.province_name = province_name;
	}

	/**
	 * 城市代码
	 */
	public String getCity_code() {
		return city_code;
	}

	/**
	 * 城市代码
	 */
	public void setCity_code(String city_code) {
		this.city_code = city_code;
	}

	/**
	 * acc_type
	 */
	public String getAcc_type() {
		return acc_type;
	}

	/**
	 * acc_type
	 */
	public void setAcc_type(String acc_type) {
		this.acc_type = acc_type;
	}

	/**
	 * 城市代码
	 */
	public int getProvince_id() {
		return province_id;
	}

	/**
	 * 城市代码
	 */
	public void setProvince_id(int province_id) {
		this.province_id = province_id;
	}
	
	public Telaccsegment() {
	}

	/**
	 * 构造方法
	 * @param isp_id
	 * @param acc_segment
	 * @param province_name
	 * @param city_code
	 * @param acc_type
	 * @param province_id
	 */
	public Telaccsegment(int isp_id, String acc_segment, String province_name,
			String city_code, String acc_type, int province_id) {
		super();
		this.isp_id = isp_id;
		this.acc_segment = acc_segment;
		this.province_name = province_name;
		this.city_code = city_code;
		this.acc_type = acc_type;
		this.province_id = province_id;
	}
}
